package com.bilibili.demo;

public class JD implements Switch{
    private String name ;
    private boolean satus;


    @Override
    public void press() {
        satus=!satus;
    }

    public JD() {}
    public JD(String name, boolean satus) {
        this.name = name;
        this.satus = satus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSatus() {
        return satus;
    }

    public void setSatus(boolean satus) {
        this.satus = satus;
    }
}